 {% extends 'common/layout_main.html' %} {% block content %}

<body>
    <div class="container">
        <div class="row">
            <div class="col-xs-8 col-xs-offset-2 col-sm-4 col-md-4 col-lg-4">
                <form action="" method="POST" role="form">
                    <div class="form-group">
                        <label for="">手机号码</label>
                        <input type="text" name="phone" class="form-control" id="" placeholder="请输入收货人手机号码或者收货人姓名">
                    </div>
                    <button type="submit" class="btn btn-success">查询</button>
                </form>
            </div>
        </div>

        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                <table class="table table-striped">

                    {% if chaxu %}

                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <thead>
                                <tr>
                                    <th>信息</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>{{chaxu}}</td>
                                </tr>
                            </tbody>
                        </div>
                    </div>


                    {% else %} {% if kdtext %}
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 ">
                        姓 名: {{kdtext['sname']}}
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 ">
                        号 码：{{kdtext['sphone']}}
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 ">
                        快递单号: {{kdtext['number']}}
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 ">
                        快递公司：{{kdtext['type']}}
                    </div>
                    <thead>
                        <tr>
                            <th>时间</th>
                            <th>信息</th>
                        </tr>
                    </thead>{% for t in kdtext['list'] %}
                    <tr>
                        <td>{{t['time']}}</td>
                        <td>{{t['status']}}</td>
                    </tr>
                    {% endfor %} {% endif %} {% endif %}

                    </tbody>
                </table>
                {% if chaxu %}
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <img src="{{ buildStaticUrl('/image/code.jpg') }}" class="img-responsive " alt="Image ">
                    </div>
                </div> {% endif %}

            </div>

        </div>
    </div>
    </div>

</body>
{% endblock %}